package com.wps.data
{
	/**
	 * 	项目管理
	 * 		项目时间等全局的数据应该放在这里处理
	 */	
	public class ProjectManager
	{
		public static const ONEHOUR: Number = (1000*60*60);
		public static const ONEDAY: Number = (1000*60*60*24);
		public static const ONEWEEK: Number = ONEDAY * 7;
		public function ProjectManager()
		{
		}
		
		public static function get  userCount(): int
		{
			return users.length;
		}
		public static var users: Vector.<String> = new Vector.<String>();
		
		public static function fillUsers(): void
		{
//			userCount = 5;
			users.push("a", "b", "c", "d","e");
		}
		
		public static function get dayCount(): int
		{
			return workDays.length;
		}
		
 		public static var workDays_String: Vector.<String> = new Vector.<String>();
		public static var workDays: Vector.<Date> = new Vector.<Date>();
		
		public static function fillWorkDays(): void
		{
			var _workDays_String: Vector.<String> = new Vector.<String>();
			var _workDays: Vector.<Date> = new Vector.<Date>();
			var date: Date = new Date();
			var date_Number: Number = date.time;
			for(var i: int = 0; i < 80 ; i++)
			{
				var newDate: Date = new Date(date_Number + i*(ONEDAY));
				var dateString: String = newDate.toDateString();
				_workDays_String.push(dateString);
				_workDays.push(newDate);
			}
			workDays = _workDays;
			workDays_String = _workDays_String;
		}
	}
}